TextShape AddHatchPattern

Adds a hatch pattern to the shape

public void AddHatchPattern(HatchPattern hatchPattern)

 

Return value

void  

 

Parameters

HatchPattern hatchPattern The hatching pattern that should apply on the text

 

Example

Copy
HatchPatternLine patternLine = new HatchPatternLine();
patternLine.BorderGap = 0.125f;
patternLine.BorderGapDirection = HatchLineBorderGapDirection.Inward;
patternLine.Spacing = .1f;
patternLine.Angle = 0f;
patternLine.BaseX = 0f;
patternLine.BaseY = 0f;
patternLine.LineStyle = HatchLineStyle.Unidirectional;
patternLine.WithOffset = true;
patternLine.OffsetAlgorithm = HatchOffsetAlgorithm.DirectOffset;
patternLine.CornerStyle = HatchCornerStyle.SmoothWithLines;

textShape.AddHatchPattern(patternLine);